<?php
/**
 * Created by : PhpStorm
 * User: DuFei
 * Date: 2020/7/30
 * Time: 16:29
 */

namespace app\models\response;



use app\models\BaseDto;

class RespRoleList extends BaseDto
{
    /**
     * @var RespUserDetail[]
     */
    private $list;

    /**
     * @var int
     */
    private $total;

    /**
     * @var int
     */
    private $pages;

    /**
     * @var int
     */
    private $pageSize;

    /**
     * @var int
     */
    private $pageNum;

    /**
     * @return int
     */
    public function getPageNum()
    {
        return $this->pageNum;
    }

    /**
     * @param int $pageNum
     */
    public function setPageNum($pageNum)
    {
        $this->pageNum = $pageNum;
    }


    /**
     * @return RespUserDetail[]
     */
    public function getList()
    {
        return $this->list;
    }

    /**
     * @param RespUserDetail[] $list
     */
    public function setList($list)
    {
        $this->list = $list;
    }

    /**
     * @return int
     */
    public function getTotal()
    {
        return $this->total;
    }

    /**
     * @param int $total
     */
    public function setTotal($total)
    {
        $this->total = $total;
    }

    /**
     * @return int
     */
    public function getPages()
    {
        return $this->pages;
    }

    /**
     * @param int $pages
     */
    public function setPages($pages)
    {
        $this->pages = $pages;
    }

    /**
     * @return int
     */
    public function getPageSize()
    {
        return $this->pageSize;
    }

    /**
     * @param int $pageSize
     */
    public function setPageSize($pageSize)
    {
        $this->pageSize = $pageSize;
    }



    public function jsonSerialize()
    {
        return [
            "total"=> $this->getTotal(),
            "pageSize"=>$this->getPageSize(),
            "list"=>$this->getList(),
            "pageNum"=>$this->getPageNum()
        ];
    }

}
